<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>wxshop后台管理</title>
    <link rel="stylesheet" href="../../../static/frame/layui/css/layui.css" th:href="@{frame/layui/css/layui.css}">
    <link rel="stylesheet" href="../../../static/frame/static/css/style.css" th:href="@{frame/static/css/style.css}">
    <link rel="icon" href="../../../static/frame/static/image/code.png" th:href="@{frame/static/image/code.png}">
    <style type="text/css">
        .layui-table-cell{
            height: 38px;
        }
    </style>
</head>
<body>

<!-- layout admin -->
<div class="layui-layout layui-layout-admin"> <!-- 添加skin-1类可手动修改主题为纯白，添加skin-2类可手动修改主题为蓝白 -->
    <!-- header -->
    <div class="layui-header my-header">
        <a href="index.html">
            <!--<img class="my-header-logo" src="" alt="logo">-->
            <div class="my-header-logo">wxshop后台管理</div>
        </a>
        <div class="my-header-btn">
            <button class="layui-btn layui-btn-small btn-nav"><i class="layui-icon">&#xe65f;</i></button>
        </div>


        <!-- 顶部右侧添加选项卡监听 -->
        <ul class="layui-nav my-header-user-nav" lay-filter="side-top-right">
            <li class="layui-nav-item">
                <a class="name" href="javascript:;"><img src="../../../static/frame/static/image/code.png" th:src="@{frame/static/image/code.png}" alt="logo" th:text="${session.theUser.username}"> </a>
                <dl class="layui-nav-child">
                    <dd><a href="/loginExit" ><i class="layui-icon">&#x1006;</i>退出</a></dd>
                </dl>
            </li>
        </ul>

    </div>
    <!-- side -->
    <div class="layui-side my-side">
        <div class="layui-side-scroll">
            <!-- 左侧主菜单添加选项卡监听 -->
            <ul class="layui-nav layui-nav-tree" lay-filter="side-main">
                <li class="layui-nav-item"><a href="javascript:;" href-url="" class="options"><i class="layui-icon">&#xe62c;</i>仪表盘</a></li>
                <li class="layui-nav-item"> <!--去除 layui-nav-itemed 即可关闭展开-->
                    <a href="javascript:;"><i class="layui-icon">&#xe735;</i>商品模块</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" href-url="type/goTypemgr" class="options"><i class="layui-icon">&#xe705;</i>商品类别管理</a></dd>
                        <dd><a href="javascript:;" href-url="goods/goGoodsmgr" class="options"><i class="layui-icon">&#xe705;</i>商品管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="javascript:;" href-url="shopcar/goShopCarmgr" class="options"><i class="layui-icon">&#xe698;</i>购物车管理</a></li>
                <li class="layui-nav-item"><a href="javascript:;" href-url="orderInfo/goOrderListPage" class="options"><i class="layui-icon">&#xe60a;</i>订单管理</a></li>
                <li class="layui-nav-item"><a href="javascript:;" href-url="news/goNewsmgr" class="options"><i class="layui-icon">&#xe609;</i>新闻管理</a></li>
                <li class="layui-nav-item"> <!--去除 layui-nav-itemed 即可关闭展开-->
                    <a href="javascript:;"><i class="layui-icon">&#xe735;</i>用户模块</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" href-url="/user/goUserPage" class="options"><i class="layui-icon">&#xe705;</i>用户管理</a></dd>
                        <dd><a href="javascript:;" href-url="/userlevel/goUserLevelPage" class="options"><i class="layui-icon">&#xe705;</i>用户等级管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="javascript:;" href-url="/carousel/goCarouselPage" class="options"><i class="layui-icon">&#xe64a;</i>轮播管理</a></li>
            </ul>
        </div>
    </div>
    <!-- body -->
    <div class="layui-body my-body" id="content-body" style="padding-top:10px"></div>
    <!-- footer -->
    <div class="layui-footer my-footer">
        <p>2018 powered by east</p>
    </div>
</div>


<script type="text/javascript" src="../../../static/frame/layui/layui.js" th:src="@{frame/layui/layui.js}"></script>
<script type="text/javascript" src="../../../static/frame/static/js/vip_comm.js" th:src="@{frame/static/js/vip_comm.js}"></script>
<script th:src="@{release/wangEditor.min.js}" src="../../../static/release/wangEditor.min.js"></script>
<script th:inline="javascript">
    //页面跳转ajax加载
    layui.use(['form', 'laydate', 'upload','table','element'],function () {
        var form = layui.form,
            layer = layui.layer,
            layedit = layui.layedit,
            laydate = layui.laydate,
            upload = layui.upload,
            table = layui.table,
            element = layui.element,
            $ = layui.$;

        /**
         * ajax加载页面内容
         */
        $(".options").on("click",function () {
            var $url = $(this).attr("href-url");
            if($url!=''){//如果没有location-href则不加载
                $("#content-body").load(/*[[@{*/$url/*}]]*/);
            }
        })



    })

    /**
     * 时间转换方法
     * @param temp 当前时间
     * @returns {string} 转换后的时间
     */
    function getLocalTime(temp) {
        var time = new Date(temp);
        var y = time.getFullYear();//年
        var m = time.getMonth() + 1;//月
        var d = time.getDate();//日
        var h = time.getHours();//时
        var mm = time.getMinutes();//分
        var s = time.getSeconds();//秒
        return (y+"-"+m+"-"+d)
    }
</script>

</body>
</html>